package com.scedu.spring5.service;

import com.scedu.spring5.dao.UserDao;
import com.scedu.spring5.dao.UserDaoImpl;

public class UserService {
    private UserDao userDao; //创建userSrvice里面的userDao属性
    public void add(){
        System.out.println("service add ..........");
        userDao.update(); //实现调用
    }

    public void setUserdao(UserDaoImpl userdao) { //对应的set方法
        this.userDao=userdao;
    }
}
